package com.icss.clothes.service.imp;

import com.icss.clothes.entity.Address;
import com.icss.clothes.mapper.AddressMapper;
import com.icss.clothes.service.IAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AddressService implements IAddressService {
    @Autowired
    private AddressMapper addressMapper;
    @Override
    public List<Address> findAllByUser_id(int user_id) {
        //从数据库中通过指定的用户编号查询得到收货地址信息
        return addressMapper.selectAllByUser_id(user_id);
    }
}
